<?php
class Model {
    private $database = array(
        "a"    =>    "hello world",
        "b"    =>    "ok well done",
        "c"    =>    "good bye",
    );
    
    //@TODO connect the database
    
    //run the query and get the result
    public function getResult($name){
        if( empty($name) ){
            return FALSE;
        }
        
        if( in_array($name, array_keys( $this->database ) ) ){
            return $this->database[$name];
        }
    }

    public function getLinks(){
        $links = "<a href='?cccc=a'>Link A</a>&nbsp;&nbsp;";
        $links.= "<a href='?cccc=b'>Link B</a>&nbsp;&nbsp;";
        $links.= "<a href='?cccc=c'>Link C</a>&nbsp;&nbsp;";
        
        return $links;
    }
}
?>